using System;
using System.Data;
using System.Configuration;
using System.Collections;
using System.Web;
using System.Web.Security;
using System.Web.UI;
using System.Web.UI.WebControls;
using System.Web.UI.WebControls.WebParts;
using System.Web.UI.HtmlControls;

public partial class ThucDonCaNhan : System.Web.UI.Page
{
    ThucDon TD = new ThucDon();
    protected void Page_Load(object sender, EventArgs e)
    {
        //if (!IsPostBack)
        //{
        BinDataToGrid();
        //}
    }
    public void BinDataToGrid()
    {
        DataTable table = TD.GetAllFood();

        ViewState["FastFood"] = table;
        GridView2.DataSource = table;
        GridView2.DataBind();
    }
    protected void Button3_Click(object sender, EventArgs e)
    {
        Response.Redirect("Default.aspx");
    }
    protected void GridView2_RowCommand(object sender, GridViewCommandEventArgs e)
    {
        if (e.CommandName.Equals("Delete"))
        {
        }
    }
    protected void Button1_Click(object sender, EventArgs e)
    {
        Response.Redirect("CapNhatThucDonCaNhan.aspx");
    }
}
